﻿using eShop.Core;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace eShop.Services
{
    public class AdminCustomer
    {
        #region 客户信息处理

        public static void CreateCustomer(CustomerInfo _customer)
        {
            eShop.Core.BSPData.RDBS.CreateCustomer(_customer);
        }


        public static DataTable AdminGetCustomerList()
        {
            return eShop.Core.BSPData.RDBS.GetCustomerList();
        }

        public static int DeleteCustomerByid(int wid)
        {
            return eShop.Core.BSPData.RDBS.DeleteCustomerById(wid);
        }


        public static void UpdateCustomer(CustomerInfo info)
        {
            eShop.Core.BSPData.RDBS.UpdateCustomer(info);
        }

        #endregion
    }
}
